package net.wanho.systemSettings.service.impl;

import net.wanho.commons.exception.DaoException;
import net.wanho.commons.exception.ServiceException;
import net.wanho.commons.factory.BeanFactory;
import net.wanho.systemSettings.dao.EmployeeDao;
import net.wanho.systemSettings.dao.PositionDao;
import net.wanho.systemSettings.service.EmployeeService;
import net.wanho.systemSettings.vo.EmployeeVo;

public class EmployeeServiceImpl implements EmployeeService {
    private EmployeeDao employeeDao = BeanFactory.getBean(EmployeeDao.class) ;
    @Override
    public EmployeeVo selectByIdEmployeeVo(Integer employeeId) throws ServiceException {
        try {
            return employeeDao.selectByIdEmployeeVo(employeeId);
        } catch (DaoException e) {
            e.printStackTrace();
            throw new ServiceException(e.getMessage()) ;
        }

    }
}
